package com.nf.practice.utils;

public class ProcessException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    public String errorCode;

    public ProcessException() {
    }

    public ProcessException(String message) {
        super(message);
    }

    public ProcessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ProcessException(String errorCode, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return this.errorCode;
    }
}
